/**
 * 后台服务接口
 */
import axios from '@/http/index.js'
import qs from 'qs'

export const getCode = (path,branch,username,password) => {
  return axios({
    method: 'post',
    url: '/getCode',
    data: {path,branch,username,password}
  })
}

export const build = (id,name) => {
  return axios({
    method: 'post',
    url: '/build',
    data: {id,name}
  })
}

export const deploy = (id,name,skipTest) => {
  return axios({
    method: 'post',
    url: '/deploy',
    data: {id,name,skipTest}
  })
}

export const docker = (id,name,imagesName,port) => {
  return axios({
    method: 'post',
    url: '/docker',
    data: {id,name,imagesName,port}
  })
}